package com.team.employment.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum DegreeType implements BaseEnum {

    PHD(1,"博士"),
    MASTER(2,"硕士"),
    BACHELOR(3,"本科"), 
    COLLEGE(4,"大专"),
    HIGH_SCHOOL(5,"高中"),
    SECONDARY(6,"中专");

    @EnumValue
    @JsonValue
    private Integer code;
    private String name;

    @Override
    public Integer getCode() {
        return this.code;
    }


    @Override
    public String getName() {
        return name;
    }

    DegreeType(Integer code, String name) {
        this.code = code;
        this.name = name;
    }


}